package com.synjones.zeuscloudweb.dao;

import com.synjones.zeus.model.web.AdminBean;
import com.synjones.zeus.model.web.AdminRoleMenuBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @author  yys
 * Description: 用户登陆Mapper
 * @date  created in 15:17 2018-01-08
 * Modified by:
 */
@Mapper
public interface LoginDaoMapper {
  /**
    *  根据用户名获取用户信息
    *  @param username 用户名
    *  @author yys
    *  Description:  获取用户信息
    *  @date  10:49 2018/1/3
    *  @return  AdminVO
    *  throws
    */
   AdminBean findUserByName(@Param("userName")String username);
  /**
    *  根据用户ID获取用户权限菜单
    *  @param userId 用户ID
    *  @author yys
    *  Description:  获取用户权限菜单
    *  @date  10:48 2018/1/3
    *  @return  List<AdminVO>
    *  throws
    */
    List<AdminRoleMenuBean> findAdminRoleMenuByUserId(@Param("userId")String userId);
  /**
    *  根据用户ID获取用户角色
    *  @param userId
    *  @author yys
    *  Description:  获取用户角色
    *  @date  10:47 2018/1/3
    *  @return   String
    *  throws
    */
    String findRoleNameByUserId(@Param("userId")String userId);
}
